#include <nds.h>

#ifndef SPRITE_H
#define SPRITE_H

#define SpriteAngleMask 0x01FF
static const int SpriteDmaChannel = 3;

typedef struct{
	int oamID;
	int width;
	int height;
	int angle;
	SpriteEntry * entry;
} SpriteInfo;

void updateOAM(tOAM * oam);
void initOAM(tOAM * oam);
void rotateSprite(SpriteRotation * spriteRotation, u16 angle);
void setSpriteVisibility(SpriteEntry * spriteEntry, bool hidden, bool affine, bool doubleBound);
#endif